package com.ruoyi.web.controller.vantController.shopController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.BrandInfo;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.TraitService;
import com.ruoyi.system.service.vantservice.shopservice.ApiTraitServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(value = "特色服务接口", tags = {"特色服务接口"})
@RestController
@RequestMapping("/api/shop/trait")
@CrossOrigin
public class ApiTraitServiceController extends BaseController {

   @Autowired
    private ApiTraitServiceService apiTraitServiceService;

    @ApiOperation(value = "查询商家服务")
    @GetMapping(value ="/getTraitIdOne/{constructionId}")
    public List<TraitService> TraitfindAllListByIdOne(@PathVariable("constructionId") Integer constructionId){
        return apiTraitServiceService.TraitfindAllListByIdOne(constructionId);
    }

    @ApiOperation(value = "查询特色服务")
    @GetMapping(value ="/getTraitIdTwo/{constructionId}")
    public List<TraitService> TraitfindAllListByIdTwo(@PathVariable("constructionId") Integer constructionId){
        return apiTraitServiceService.TraitfindAllListByIdTwo(constructionId);
    }

    @ApiOperation(value = "查询平台服务")
    @GetMapping(value ="/getTraitIdTree/{constructionId}")
    public List<TraitService> TraitfindAllListByIdTherr(@PathVariable("constructionId") Integer constructionId){
        return apiTraitServiceService.TraitfindAllListByIdTherr(constructionId);
    }



}
